;; --------------------------------------------------
; person information
;;
(setq user-full-name "Shao Yanmin")
(setq user-mail-address "shaoyan.alph@gamil.com")

;; --------------------------------------------------
; others
;;
;;每次确认，输一个字母
(fset 'yes-or-no-p 'y-or-n-p)

;enable use the clipboard
(setq x-select-enable-clipboard t)

;显行号
(global-linum-mode t)
(setq inhibit-startup-message t)
(setq linum-disabled-modes-list '(eshell-mode wl-summary-mode compilation-mode))
(defun linum-on ()
  (unless (or (minibufferp) (member major-mode linum-disabled-modes-list))
    (linum-mode 1)))

(setq-default indent-tabs-mode nil)
(setq default-tab-width 8)
